package com.b2j.language;

import com.b2j.base.Lexema;
import com.b2j.base.MainTools;
import com.b2j.base.Routine;

public class Until extends Routine {

	@Override
	public String generate(Lexema lexema) {
		
		String line = "}while(!(";
			
		// Process the UNTIL body 'UNTIL(expression)'

		lexema = MainTools.tools.nextLexema();
		line = line + MainTools.tools.identifier(lexema);			
		line = line + "));\n";

		return line;
	}

}
